package cn.nyse.ktc_spit.dao;

import cn.nyse.ktc_spit.entity.Spit;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;
import java.util.List;

public interface SpitDao extends MongoRepository<Spit,String> {
    List<Spit> findByUserid(String spitid);


    Page<Spit> findByParentid(String parentid, Pageable page);

}
